package com.ylzr.service.impl;

import com.ylzr.dao.UserDao;
import com.ylzr.service.UserService;

public class UserServiceImpl implements UserService {

    public UserServiceImpl() {
        System.out.println("UserServiceImpl的无参构造");
    }

    public UserServiceImpl(UserDao userDao) {
        this.userDao = userDao;
        System.out.println("UserServiceImpl的有参构造");
    }

    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void ServiceSaySave(String name) {
        userDao.save(name);
    }






}
